//地图服务地址
var gisPath = "http://192.168.0.6:9898/geoserver/GSJ/ows?service=WFS&version=1.0.0&request=GetFeature&";
//查询地图地址参数
var featureNSUrl = "http://192.168.0.6/gsj";
//wfs查询地图地址
var gsjGisWfsUrl = "http://192.168.0.6:9898/geoserver/GSJ/wfs";

var mainMapMsg = {
		gsdlLayer:{//高速道路
			layerUrl:gisPath+"typeName=GSJ:gs&outputFormat=application/json&bbox=",
			layerName:'gs',
			layerType:'line',
			style:new ol.style.Style({
				stroke: new ol.style.Stroke({
					color: '#C20900',
					width: 4,
					lineDashOffset:50
				})
			}),

		},
		cddlLayer:{//村道道路
			layerUrl:gisPath+"typeName=GSJ:cddl&maxFeatures=2000&outputFormat=application/json&bbox=",
			layerName:'cddl',
			layerType:'line'
		},
		gddlLayer:{//国道道路
			layerUrl:gisPath+"typeName=GSJ:gd&outputFormat=application/json&bbox=",
			layerName:'gd',
			layerType:'line',
			style:function (feature, resolution){
				var style = null;
				var roadcode = feature.get("roadcode");
				roadcode = roadcode.substring(0,4);
				style = new ol.style.Style({
					stroke: new ol.style.Stroke({
						color: '#FF8C8C',
						width: 3,
						lineDashOffset:50
					}),	
				});	
				return [style];
			},
		},
		xiangddlLayer:{//乡道道路
			layerUrl:gisPath+"typeName=GSJ:xiangd&outputFormat=application/json&bbox=",
			layerName:'xiangd',
			layerType:'line',
			style:new ol.style.Style({
				stroke: new ol.style.Stroke({
					color: '#BDBD00',
					width: 3,
					lineDashOffset:50
				})
			})
		},
		xddlLayer:{//县道道路
			layerUrl:gisPath+"typeName=GSJ:xd&outputFormat=application/json&bbox=",
			layerName:'xd',
			layerType:'line',
			style:new ol.style.Style({
				stroke: new ol.style.Stroke({
					color: '#808080',
					width: 4,
					lineDashOffset:50
				})
			})
		},
		sddlLayer:{//省道道路
			layerUrl:gisPath+"typeName=GSJ:shend&outputFormat=application/json&bbox=",
			layerName:'shend',
			layerType:'line',
			style:new ol.style.Style({
				stroke: new ol.style.Stroke({
					color: '#000080',
					width: 4,
					lineDashOffset:50
				})
			})
		},
		gonglugljgLayer:{//公路管理机构
			layerUrl:gisPath+"&typeName=GSJ:guanlijigou&outputFormat=application/json&bbox=",
			layerName:'gonglugljg',
			layerType:'point',
			style:function (feature, resolution){
				var style = null;
				var gljgType =  feature.get("distcode");
				var gljgName =  feature.get("deptname");
				if(gljgType == 'A'){
					style = new ol.style.Style({
						image:new ol.style.Icon({
							src: '../../gsj/images/gis/gljg.png',
							scale: 1,
							// color:'#B05800'
						}),
						text:new ol.style.Text({
							font: 'bold 10px 宋体',     //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#000081'
							}),
							text:gljgName,
							textAlign:'start',
							offsetX:10,
							offsetY:-5,
							rotateWithView:true,
							textBaseline:'bottom',
						}),
					});
					//style.getText().setText(resolution<=0.000171661376953125?gljgName : '');
				}else if(gljgType == 'B'){
					style = new ol.style.Style({
						image:new ol.style.Icon({
							src: '../../gsj/images/gis/gsgs.png',
							scale: 1,
							//color:'#B05800'
						}),
						text:new ol.style.Text({
							font: 'bold 10px 宋体',     //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#4a89ef'
							}),
							text:gljgName,
							textAlign:'start',
							offsetX:10,
							offsetY:-5,
							rotateWithView:true,
							textBaseline:'bottom',
						}),
					});
					//	style.getText().setText(resolution<=0.000171661376953125?gljgName : '');
				}else if(gljgType == 'C'){
					style = new ol.style.Style({
						image:new ol.style.Icon({
							src: '../../gsj/images/gis/yfdw.png',
							scale: 1,
							// color:'#B05800'
						}),
						text:new ol.style.Text({
							font: 'bodl 10px 宋体',     //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#349bc3'
							}),
							text:gljgName,
							textAlign:'start',
							offsetX:10,
							offsetY:-5,
							rotateWithView:true,
							textBaseline:'bottom',
						}),
					});
					//style.getText().setText(resolution<=0.000171661376953125?gljgName : '');
				}
				return [style];
			}
		},
		cxjcLayer:{//超限检查
			layerUrl:gisPath+"typeName=GSJ:cxjiance&outputFormat=application/json&bbox=",
			layerName:'cxjiance',
			layerType:'point',
			style:function (feature, resolution){
				var style = null;
				var name = feature.get("name");
				style = new ol.style.Style({
					image:new ol.style.Icon({
						src: '../../gsj/images/gis/cxjc.png',
						scale: 1,
						color:'#B05800'
					}),
					text:new ol.style.Text({
						font: 'bold 12px 宋体',     //字体与大小
						fill: new ol.style.Fill({    //文字填充色
							color: '#a04930'
						}),
						text:name,
						textAlign:'start',
						offsetX:10,
						offsetY:-5,
						textBaseline:'bottom',
						//rotateWithView:true,
					}),
				});
				return [style];
			}
		},
		glsfzLayer:{//公路收费
			layerUrl:gisPath+"typeName=GSJ:glshoufei&outputFormat=application/json&bbox=",
			layerName:'glshoufei',
			layerType:'point',
			style:function(feature, resolution){
				var style = null;
				var name = feature.get("name");
				if(name != null &&name !=""){
					style = new ol.style.Style({
						image:new ol.style.Icon({
							src: '../../gsj/images/gis/glsf.png',
							scale:1.2,
							color:'#fff'
						}),
						text:new ol.style.Text({
							font: 'bold 12px 宋体',     //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#B05800'
							}),
							text:name,
							textAlign:'start',
							offsetX:10,
							offsetY:-5,
							textBaseline:'bottom',
						}),
					});
				}else{
					style = new ol.style.Style({
						image:new ol.style.Icon({
							src: '../../gsj/images/gis/glsf.png',
							scale:1.2,
							color:'#fff'
						}),
					});
				}
				return style;
			}
		},
		lzxkLayer:{//路政许可
			layerUrl:gisPath+"typeName=GSJ:luzheng&outputFormat=application/json&bbox=",
			layerName:'luzheng',
			layerType:'point',
			style:function (feature, resolution){
				var style = null;
				var name = feature.get("name");
				style = new ol.style.Style({
					image:new ol.style.Icon({
						src: '../../gsj/images/gis/lzxk.png',
						scale: 1,
						color:'#FFFFFF'
					}),
					text:new ol.style.Text({
						font: 'bold 12px 宋体',     //字体与大小
						fill: new ol.style.Fill({    //文字填充色
							color: '#B05800'
						}),
						text:name,
						textAlign:'start',
						offsetX:10,
						offsetY:-5,
						textBaseline:'bottom',
					}),

				});
				return [style];
			}
		},
		zyzhLayer:{//主要桩号
			layerUrl:gisPath+"typeName=GSJ:zhuanghao&outputFormat=application/json&bbox=",
			layerName:'zhuanghao',
			layerType:'point',
			style:function (feature, resolution){
				var style = null;
				var name = feature.get("name")||" ";
				style = new ol.style.Style({
					image:new ol.style.Icon({
						src: '../../gsj/images/gis/zhuanghao.png',
						scale: 1,
						color:'#359AFF'
					}),
					text:new ol.style.Text({
						font: 'bold 12px 宋体',     //字体与大小
						fill: new ol.style.Fill({    //文字填充色
							color: '#B55A00'
						}),
						text:name,
						textAlign:'start',
						offsetX:10,
						offsetY:-5,
						textBaseline:'bottom',
					}),

				});
				return [style];
			}
		},
		xzzxLayer:{//行政中心
			layerUrl:gisPath+"typeName=GSJ:xingzheng&outputFormat=application/json&bbox=",
			layerName:'xingzheng',
			layerType:'point',
			style:function (feature, resolution){
				var style = null;
				var name = feature.get("name")||" ";
				style = new ol.style.Style({
					image:new ol.style.Icon({
						src: '../../gsj/images/gis/xingzheng.png',
						scale: 1,
						//color:'#359AFF'
					}),
					text:new ol.style.Text({
						font: 'bold 12px 宋体',     //字体与大小
						fill: new ol.style.Fill({    //文字填充色
							color: '#d78989'
						}),
						text:name,
						textAlign:'start',
						offsetX:10,
						offsetY:-5,
						textBaseline:'bottom',
//						stroke: new ol.style.Stroke({    //文字边界宽度与颜色
//						color: '#B55A00',
//						})
					}),

				});
				return [style];
			}
		},
		qiaoliangLayer:{//桥梁
			layerUrl:gisPath+"typeName=GSJ:ql&outputFormat=application/json&bbox=",
			layerName:'ql',
			layerType:'point',
			style:function(feature,resolution){
				var style = null;
				var name = feature.get('name');
				style = new ol.style.Style({
					image:new ol.style.Icon({
						src: '../../gsj/images/gis/qiaoliang.png',
						scale:1.0
					}),
					text:new ol.style.Text({
						font: 'bold 10px 宋体',     //字体与大小
						fill: new ol.style.Fill({    //文字填充色
							color: 'black'
						}),
						textAlign:'start',
						offsetX:10,
						offsetY:-5,
						textBaseline:'bottom',
					}),	
				});
				style.getText().setText(resolution<=0.0000858306884765625?name : '');
				return [style];
			}

		},
		jtldcLayer:{//交通量调查
			layerUrl:gisPath+"typeName=GSJ:jiaotong&outputFormat=application/json&bbox=",
			layerName:'jiaotong',
			layerType:'point',	
			style:function (feature, resolution){
				var style = null;
				var remark = feature.get("remarkmess");
				var  gczmc = feature.get("gczmc");
				if(remark === "间隙"){
					style = new ol.style.Style({
						image:new ol.style.Icon({
							src: '../../gsj/images/gis/jianxi.png',
							scale:1.0
						}),
						text:new ol.style.Text({
							font: 'bold 10px 宋体',     //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#B55A00'
							}),
							text:gczmc,
							textAlign:'start',
							offsetX:10,
							offsetY:-5,
							textBaseline:'bottom',

						}),
					});
				}else if(remark === "连续"){
					style = new ol.style.Style({
						image:new ol.style.Icon({
							src: '../../gsj/images/gis/lianxiu.png',
							scale:1.0
						}),
						text:new ol.style.Text({
							font: 'bold 10px 宋体',     //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#B55A00'
							}),
							text:gczmc,
							textAlign:'start',
							offsetX:8,
							offsetY:-5,
							textBaseline:'bottom',

						}),

					});
				}	
				return [style];
			}
		},
		sdLayer:{//隧道
			layerUrl:gisPath+"typeName=GSJ:sd&outputFormat=application/json&bbox=",
			layerName:'sd',
			layerType:'polygon',
			style:function(feature, resolution){
				var style = null;
				var name = feature.get('name');
				if(name.indexOf('左')>=0||name.indexOf('上')>=0){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({   
							color: '#0066ff',
							width:5
						}) ,
					}); 	
				}else{
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({   
							color: '#0066ff',
							width:5
						})

					});
				}
				return [style];
			}

		},
		cxdmLayer:{
			layerUrl:gisPath+"typeName=GSJ:cxdm&outputFormat=application/json&bbox=",
			layerName:'cxdm',
			layerType:'polygon',
			style:function(feature, resolution){
				var style = null;
				var name = feature.get("name");
				style = new ol.style.Style({
					fill:new ol.style.Fill({
						color:'#EEEEEE'
					}),
					stroke: new ol.style.Stroke({   
						color: '#0066ff',
						width:2
					}) ,
					text:new ol.style.Text({
						font: 'bold 10px 宋体',     //字体与大小
						fill: new ol.style.Fill({    //文字填充色
							color: 'black'
						}),
						textAlign:'center',
						offsetX:0,
						offsetY:0,
						rotation:45,
					}),
				});
				style.getText().setText(resolution<=0.000002682209014892578?name : '');
				return [style];
			}
		},
		cxdbxLayer:{
			layerUrl:gisPath+"typeName=GSJ:cxdbx&outputFormat=application/json&bbox=",
			layerName:'cxdbx',
			layerType:'line',

		},
		sdxLayer:{
			layerUrl:gisPath+"typeName=GSJ:sdx&outputFormat=application/json&bbox=",
			layerName:'sdx',
			layerType:'line',
			style:function(feature, resolution){
				var style = null;
				var name = feature.get('name');
				if(name.indexOf('左')>=0||name.indexOf('上')>=0){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({   
							color: '#0066ff',
							// width:5
						}) ,
						text:new ol.style.Text({
							font: 'normal 5px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: 'black'
							}),
							//text:name,
							textAlign:'start',
							offsetX:-100,
							offsetY:-15,
							textBaseline:'bottom',
						}),
					}); 	
				}else{
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({   
							color: '#0066ff',
							//width:5
						}),
						text:new ol.style.Text({
							font: 'normal 5px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: 'black'
							}),
							// text:name,
							textAlign:'start',
							offsetX:15,
							offsetY:-15,
							textBaseline:'bottom',
						})
					});
				}
				style.getText().setText(resolution<=0.00034332275390625?name : '');
				return [style];
			}
		},
//		sddLayer:{
//		layerUrl:gisPath+"typeName=GSJ:sdd&outputFormat=application/json&bbox=",
//		layerName:'sdd',
//		layerType:'point',
//		style:function(feature,resolution){
//		var style = null;
//		var name = feature.get('name');
//		style = new ol.style.Style({
//		image:new ol.style.Icon({
//		src: '../../gsj/images/gis/suid01.png',
//		scale:0.8
//		}),
//		text:new ol.style.Text({
//		font: 'normal 10px 宋体',     //字体与大小
//		fill: new ol.style.Fill({    //文字填充色
//		color: 'black'
//		}),
//		textAlign:'start',
//		offsetX:10,
//		offsetY:-5,
//		textBaseline:'bottom',
//		stroke: new ol.style.Stroke({    //文字边界宽度与颜色
//		color: '#B55A00',
//		})
//		}),	
//		});
//		style.getText().setText(resolution<=0.0000858306884765625?name : '');
//		return [style];
//		}
		//	},
		hdmLayer:{
			layerUrl:gisPath+"typeName=GSJ:hdm&outputFormat=application/json&bbox=",
			layerName:'hdm',
			layerType:'polygon',

		},
		suidLayers:{
			layerName:'suidao',
			layerType:'layers',
			layerArr:['sd','cxdm','hdm','jkxt','zmxt','tfxt','cxdbx','sdx']
		},

		GdInspect2011:{//2011年路检国道
			layerUrl:gisPath+"typeName=GSJ:gd11&outputFormat=application/json&bbox=",
			layerName:'gd11',
			layerType:'line',	
			style:function (feature, resolution){
				var style = null;
				var startArr = ['2480','78','2989','67'];
				var start = feature.get('start');
				if(start.indexOf('.')>=0){
					start = start.substring(0,start.indexOf('.'));
				}
				var name = feature.get('name');
				var sxx = feature.get('sxx');
				var mqipd = feature.get('mqipd');
				var pqipd = feature.get('pqipd');
				var rqipd = feature.get('rqipd');
				var scipd = feature.get('scipd');
				var pcipd = feature.get('pcipd');
				var tcipd = feature.get('tcipd');
				if(mqipd == '/' &&pqipd == '/'&& rqipd == '/'&&scipd == '/'&&pcipd == '/'&&tcipd == '/'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#D3D3D3',
							width: 6,
							lineDashOffset:0,

						})
					}); 
				}else if(startArr.indexOf(start)>=0&&sxx == '上行'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#FF8C8C',
							width: 5,
							lineDashOffset:0,

						}),
						text:new ol.style.Text({
							font: 'bold 12px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#7B003E'
							}),
							text:name,
							textAlign:'start',
							offsetX:15,
							offsetY:-15,
							textBaseline:'bottom',
						}),
					}); 
				}else {

					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#FF8C8C',
							width: 5,
							lineDashOffset:0,

						})
					}); 
				}
				return [style];
			}
		},
		GdInspect2013:{////2013年路检国道
			layerUrl:gisPath+"typeName=GSJ:gd13&outputFormat=application/json&bbox=",
			layerName:'gd13',
			layerType:'line',	
			style:function (feature, resolution){
				var style = null;
				var startArr = ['2480','78','2989','67'];
				var start = feature.get('start');
				if(start.indexOf('.')>=0){
					start = start.substring(0,start.indexOf('.'));
				}
				var name = feature.get('name');
				var sxx = feature.get('sxx');
				var mqipd = feature.get('mqipd');
				var pqipd = feature.get('pqipd');
				var rqipd = feature.get('rqipd');
				var scipd = feature.get('scipd');
				var pcipd = feature.get('pcipd');
				var tcipd = feature.get('tcipd');
				if(mqipd == '/' &&pqipd == '/'&& rqipd == '/'&&scipd == '/'&&pcipd == '/'&&tcipd == '/'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#D3D3D3',
							width: 6,
							lineDashOffset:50
						})
					}); 
				}else if(startArr.indexOf(start)>=0&&sxx == '上行'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#FF8C8C',
							width: 5,
							lineDashOffset:50
						}),
						text:new ol.style.Text({
							font: 'bold 12px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#7B003E'
							}),
							text:name,
							textAlign:'start',
							offsetX:15,
							offsetY:-15,
							textBaseline:'bottom',
						}),
					}); 
				}else {

					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#FF8C8C',
							width: 5,
							lineDashOffset:50
						})
					}); 
				}
				return [style];
			}
		},
		GdInspect2015:{//2015年路检国道
			layerUrl:gisPath+"typeName=GSJ:gd15&outputFormat=application/json&bbox=",
			layerName:'gd15',
			layerType:'line',	
			style:function (feature, resolution){
				var style = null;
				var startArr = ['2480','82','2989','67'];
				var start = feature.get('start');
				if(start.indexOf('.')>=0){
					start = start.substring(0,start.indexOf('.'));
				}
				var name = feature.get('name');
				var sxx = feature.get('sxx');
				var mqipd = feature.get('mqipd');
				var pqipd = feature.get('pqipd');
				var rqipd = feature.get('rqipd');
				var scipd = feature.get('scipd');
				var pcipd = feature.get('pcipd');
				var tcipd = feature.get('tcipd');
				if(mqipd == '/' &&pqipd == '/'&& rqipd == '/'&&scipd == '/'&&pcipd == '/'&&tcipd == '/'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#D3D3D3',
							width: 6,
							lineDashOffset:50
						})
					}); 

				}else if(startArr.indexOf(start)>=0&&sxx == '上行'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#FF8C8C',
							width: 5,
							lineDashOffset:50
						}),
						text:new ol.style.Text({
							font: 'bold 12px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#7B003E'
							}),
							text:name,
							textAlign:'start',
							offsetX:15,
							offsetY:-15,
							textBaseline:'bottom',
						}),
					}); 
				}else {

					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#FF8C8C',
							width: 5,
							lineDashOffset:50
						})
					}); 
				}
				return [style];
			}
		},

		ShengdInspect2011:{//2011年路检省道
			layerUrl:gisPath+"typeName=GSJ:sd11&outputFormat=application/json&bbox=",
			layerName:'sd11',
			layerType:'line',
			style:function (feature, resolution){
				var style = null;
				var startArr = ['西宝线5','南坪快速路8','核龙线34','龙深线72','西宝线94','髙横线140'];
				var start = feature.get('start');
				if(start.indexOf('.')>=0){
					start = start.substring(0,start.indexOf('.'));
				}
				var sxx = feature.get('sxx');
				var name = feature.get('name');
				var flag = name+start;
				var mqipd = feature.get('mqipd');
				var pqipd = feature.get('pqipd');
				var rqipd = feature.get('rqipd');
				var scipd = feature.get('scipd');
				var pcipd = feature.get('pcipd');
				var tcipd = feature.get('tcipd');
				if(mqipd == '/' &&pqipd == '/'&& rqipd == '/'&&scipd == '/'&&pcipd == '/'&&tcipd == '/'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#D3D3D3',
							width: 6,
							lineDashOffset:50
						})
					}); 
				}else if(startArr.indexOf(flag)>=0 && sxx === '上行'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#000080',
							width: 5,
							lineDashOffset:50
						}),
						text:new ol.style.Text({
							font: 'bold 12px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#7B003E'
							}),
							text:name,
							textAlign:'start',
							offsetX:15,
							offsetY:-15,
							textBaseline:'bottom',
						}),
					});
				}else{
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#000080',
							width: 5,
							lineDashOffset:50
						})
					}); 
				}
				return [style];
			}

		},
		ShengdInspect2013:{//2013年路检省道
			layerUrl:gisPath+"typeName=GSJ:sd13&outputFormat=application/json&bbox=",
			layerName:'sd13',
			layerType:'line',
			style:function (feature, resolution){
				var style = null;
				var startArr = ['西宝线5','南坪快速路8','核龙线34','龙深线72','西宝线94','高横线140','深圳龙大高速福龙联络线0'];
				var start = feature.get('start');
				if(start.indexOf('.')>=0){
					start = start.substring(0,start.indexOf('.'));
				}
				var sxx = feature.get('sxx');
				var name = feature.get('name');
				var flag = name+start;
				var mqipd = feature.get('mqipd');
				var pqipd = feature.get('pqipd');
				var rqipd = feature.get('rqipd');
				var scipd = feature.get('scipd');
				var pcipd = feature.get('pcipd');
				var tcipd = feature.get('tcipd');
				if(mqipd == '/' &&pqipd == '/'&& rqipd == '/'&&scipd == '/'&&pcipd == '/'&&tcipd == '/'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#D3D3D3',
							width: 6,
							lineDashOffset:50
						})
					}); 
				}else if(startArr.indexOf(flag)>=0 && sxx === '上行'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#000080',
							width: 5,
							lineDashOffset:50
						}),
						text:new ol.style.Text({
							font: 'bold 12px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#7B003E'
							}),
							text:name,
							textAlign:'start',
							offsetX:15,
							offsetY:-15,
							textBaseline:'bottom',
						}),
					});
				}else{
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#000080',
							width: 5,
							lineDashOffset:50
						})
					}); 
				}
				return [style];
			}
		},
		ShengdInspect2015:{//2015年路检省道
			layerUrl:gisPath+"typeName=GSJ:sd15&outputFormat=application/json&bbox=",
			layerName:'sd15',
			layerType:'line',
			style:function (feature, resolution){
				var style = null;
				var startArr = ['西宝线96','南坪快速路8','核龙线34','龙深线72','西宝线94','高横线140','深圳龙大高速福龙联络线0'];
				var start = feature.get('start');
				if(start.indexOf('.')>=0){
					start = start.substring(0,start.indexOf('.'));
				}
				var sxx = feature.get('sxx');
				var name = feature.get('name');
				var flag = name+start;
				var mqipd = feature.get('mqipd');
				var pqipd = feature.get('pqipd');
				var rqipd = feature.get('rqipd');
				var scipd = feature.get('scipd');
				var pcipd = feature.get('pcipd');
				var tcipd = feature.get('tcipd');
				if(mqipd == '/' &&pqipd == '/'&& rqipd == '/'&&scipd == '/'&&pcipd == '/'&&tcipd == '/'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#D3D3D3',
							width: 6,
							lineDashOffset:50
						})
					}); 
				}else if(startArr.indexOf(flag)>=0 && sxx === '上行'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#000080',
							width: 5,
							lineDashOffset:50
						}),
						text:new ol.style.Text({
							font: 'bold 12px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#7B003E'
							}),
							text:name,
							textAlign:'start',
							offsetX:15,
							offsetY:-15,
							textBaseline:'bottom',
						}),
					});
				}else{
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#000080',
							width: 5,
							lineDashOffset:50
						})
					}); 
				}
				return [style];
			}
		},
		//XdInspect2013:{},
		XdInspect2015:{//2015年路检县道
			layerUrl:gisPath+"typeName=GSJ:xd15&outputFormat=application/json&bbox=",
			layerName:'xd15',
			layerType:'line',
			style:function (feature, resolution){
				var startArr = ['白新线0','凤民线4.9','黄公线9.02','姜长线0','姜长线（光塘段）4.088','应蛇线0','凤光线4.974','布楼线12.485',
				                '龙四线4.998','天田线3.55','雪龙线3.567','鹅白线0','大盐线0','沙径线0','叠杨线7.2','龙四线5.033','布楼线0',
				                '坪坑线0','象坑线18.919','平盐线0','平盐线11.761','平盐线14.307','平盐线23.812','平盐线19.027'];
				var style = null;
				var name = feature.get('name');
				var start = feature.get('start');
				var flag = name+start;
				var mqipd = feature.get('mqipd');
				var pqipd = feature.get('pqipd');
				var rqipd = feature.get('rqipd');
				var scipd = feature.get('scipd');
				var pcipd = feature.get('pcipd');
				var tcipd = feature.get('tcipd');
				var name =  feature.get('name');
				if(mqipd == '/' &&pqipd == '/'&& rqipd == '/'&&scipd == '/'&&pcipd == '/'&&tcipd == '/'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#D3D3D3',
							width: 6,
							lineDashOffset:50
						}),
						text:new ol.style.Text({
							font: 'bold 12px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#7B003E'
							}),
							text:name,
							textAlign:'start',
							offsetX:10,
							offsetY:-5,
							textBaseline:'bottom',
						}),
					}); 
				}else if(startArr.indexOf(flag)>=0){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#808080',
							width: 5,
							lineDashOffset:50
						}),
						text:new ol.style.Text({
							font: 'bold 12px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#7B003E'
							}),
							text:name,
							textAlign:'start',
							offsetX:10,
							offsetY:-5,
							textBaseline:'bottom',
						}),
					}); 
				}else{
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#808080',
							width: 5,
							lineDashOffset:50
						})
					}); 	
				}
				return [style];
			}
		},
		XdInspect2011:{//2011年路检县道
			layerUrl:gisPath+"typeName=GSJ:xd11&outputFormat=application/json&bbox=",
			layerName:'xd11',
			layerType:'line',
			style:function (feature, resolution){
				var style = null;
				var startArr = ['白新线0','凤民线0','黄公线0','姜长线0','应蛇线0','凤光线4.974','布楼线12.485','布楼线0',
				                '龙四线4.998','天田线3.55','雪龙线3.567','鹅白线0','大盐线0','沙径线0','叠杨线7.2',
				                '坪坑线5.264','象坑线18.919','平盐线0','平盐线11.761','平盐线14.307','平盐线23.812','平盐线19.027'];
				var name = feature.get('name');
				var start = feature.get('start');
				var flag = name+start;
				var mqipd = feature.get('mqipd');
				var pqipd = feature.get('pqipd');
				var rqipd = feature.get('rqipd');
				var scipd = feature.get('scipd');
				var pcipd = feature.get('pcipd');
				var tcipd = feature.get('tcipd');
				if(mqipd == '/' &&pqipd == '/'&& rqipd == '/'&&scipd == '/'&&pcipd == '/'&&tcipd == '/'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#D3D3D3',
							width: 3,
							lineDashOffset:50
						}),
						text:new ol.style.Text({
							font: 'normal 12px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#7B003E'
							}),
							text:name,
							textAlign:'start',
							offsetX:10,
							offsetY:-5,
							textBaseline:'bottom',
						})
					}); 
				}else if(startArr.indexOf(flag)>=0){

					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#808080',
							width: 5,
							lineDashOffset:50
						}),
						text:new ol.style.Text({
							font: 'bold 12px 宋体',    //字体与大小
							fill: new ol.style.Fill({    //文字填充色
								color: '#7B003E'
							}),
							text:name,
							textAlign:'start',
							offsetX:10,
							offsetY:-5,
							textBaseline:'bottom',
						})
					}); 

				}else{
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#808080',
							width: 5,
							lineDashOffset:50
						})
					}); 
				}
				return [style];
			}
		},
		XiangdInspect2011:{//2011路检乡道
			layerUrl:gisPath+"typeName=GSJ:yd11&outputFormat=application/json&bbox=",
			layerName:'yd11',
			layerType:'line',
			style:function (feature, resolution){
				var style = null;
				var mqipd = feature.get('mqipd');
				var pqipd = feature.get('pqipd');
				var rqipd = feature.get('rqipd');
				var scipd = feature.get('scipd');
				var pcipd = feature.get('pcipd');
				var tcipd = feature.get('tcipd');
				if(mqipd == '/' &&pqipd == '/'&& rqipd == '/'&&scipd == '/'&&pcipd == '/'&&tcipd == '/'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#D3D3D3',
							width: 6,
							lineDashOffset:50
						})
					}); 
				}else{
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#BDBD00',
							width: 5,
							lineDashOffset:50
						})
					}); 
				}
				return [style];
			}
		},
//		XiangdInspect2013:{

//		},
		XiangdInspect2015:{//2015路检乡道
			layerUrl:gisPath+"typeName=GSJ:yd15&outputFormat=application/json&bbox=",
			layerName:'yd15',
			layerType:'line',
			style:function (feature, resolution){
				var style = null;
				var mqipd = feature.get('mqipd');
				var pqipd = feature.get('pqipd');
				var rqipd = feature.get('rqipd');
				var scipd = feature.get('scipd');
				var pcipd = feature.get('pcipd');
				var tcipd = feature.get('tcipd');
				if(mqipd == '/' &&pqipd == '/'&& rqipd == '/'&&scipd == '/'&&pcipd == '/'&&tcipd == '/'){
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#D3D3D3',
							width: 6,
							lineDashOffset:50
						})
					}); 
				}else{
					style=new ol.style.Style({
						stroke: new ol.style.Stroke({
							color: '#BDBD00',
							width: 5,
							lineDashOffset:50
						})
					}); 
				}
				return [style];
			}
		},
		protectGddlLayer:{//生命防护背景国道
			layerUrl:gisPath+"typeName=GSJ:gdfd&outputFormat=application/json&bbox=",
			layerName:'gdfd',
			layerType:'line',
			style:new ol.style.Style({
				stroke: new ol.style.Stroke({
					color: '#FF8C8C',
					width: 2,
					lineDashOffset:50
				})
			}),
		},
		protectSddlLayer:{//生命防护背景省道
			layerUrl:gisPath+"typeName=GSJ:sdfd&outputFormat=application/json&bbox=",
			layerName:'sdfd',
			layerType:'line',
			style:new ol.style.Style({
				stroke: new ol.style.Stroke({
					color: '#000080',
					width: 2,
					lineDashOffset:50
				})
			}),
		},
		protectXddlLayer:{//生命防护背景县道
			layerUrl:gisPath+"typeName=GSJ:xdfd&outputFormat=application/json&bbox=",
			layerName:'xdfd',
			layerType:'line',
			style:new ol.style.Style({
				stroke: new ol.style.Stroke({
					color: '#808080',
					width: 2,
					lineDashOffset:50
				})
			}),
		},
		protectXiangddlLayer:{//生命防护背景乡道
			layerUrl:gisPath+"typeName=GSJ:ydfd&outputFormat=application/json&bbox=",
			layerName:'ydfd',
			layerType:'line',
			style:new ol.style.Style({
				stroke: new ol.style.Stroke({
					color: '#BDBD00',
					width: 2,
					lineDashOffset:50
				})
			}),
		},
		processedGdLayer:{//生命防护已处置国道
			layerName:'processedGd',
			layerType:'point'
		},
		untreatedGdLayer:{//生命防护未处置国道
			layerName:'untreatedGd',
			layerType:'point'
		},
		evaluatedGdLayer:{//生命防护已评价国道
			layerName:'evaluatedGd',
			layerType:'point'
		},
		processedSdLayer:{//生命防护已处置省道
			layerName:'processedSd',
			layerType:'point'
		},
		untreatedSdLayer:{//生命防护未处置省道
			layerName:'untreatedSd',
			layerType:'point'
		},
		evaluatedSdLayer:{//生命防护已评价省道
			layerName:'evaluatedSd',
			layerType:'point'
		},
		processedXdLayer:{//生命防护已处置县道
			layerName:'processedXd',
			layerType:'point'
		},
		untreatedXdLayer:{//生命防护未处置县道
			layerName:'untreatedXd',
			layerType:'point'
		},
		evaluatedXdLayer:{//生命防护已评价县道
			layerName:'evaluatedXd',
			layerType:'point'	
		},
		processedXiangdLayer:{//生命防护已处置乡道
			layerName:'processedXiangd',
			layerType:'point'
		},
		untreatedXiangdLayer:{//生命防护未处置乡道
			layerName:'untreatedXiangd',
			layerType:'point'
		},
		evaluatedXiangdLayer:{//生命防护已评价乡道
			layerName:'evaluatedXiangd',
			layerType:'point'
		},
		diseaseDistributionLayer:{//病害分布
			layerName:'diseaseDistribution',
			layerType:'point',
			style:'',

		},
		maintenanceDistributionLayer:{//保养分布
			layerName:'MaintenanceDistribution',
			layerType:'point',
			style:'',
		},
		repairDistributionLayer:{//小修分布
			layerName:'repairDistribution',
			layerType:'point',
			style:'',
		},
		overhaulProjectLayer:{//大修工程
			layerName:'overhaulProject',
			layerType:'point',
			style:'',
		},
		intermediateProjectLayer:{//中修工程
			layerName:'intermediateProject',
			layerType:'point',
			style:'',
		},
		gd11MQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqig11&outputFormat=application/json&bbox=",
			layerName:'mqig11',
			layerType:'polygon',
			style: mqiUpStyleFunction
		},
		gd11MQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqig11&outputFormat=application/json&bbox=",
			layerName:'mqig11',
			layerType:'polygon',
			style:mqiDownStyleFunction
		}, 
		gd11PQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqig11&outputFormat=application/json&bbox=",
			layerName:'pqig11',
			layerType:'polygon',
			style:pqiUpStyleFunction
		},
		gd11PQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqig11&outputFormat=application/json&bbox=",
			layerName:'pqig11',
			layerType:'polygon',
			style:pqiDownStyleFunction
		}, 
		gd11RQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqig11&outputFormat=application/json&bbox=",
			layerName:'rqig11',
			layerType:'polygon',
			style:rqiUpStyleFunction
		},
		gd11RQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqig11&outputFormat=application/json&bbox=",
			layerName:'rqig11',
			layerType:'polygon',
			style:rqiDownStyleFunction
		},
		gd11PCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcig11&outputFormat=application/json&bbox=",
			layerName:'pcig11',
			layerType:'polygon',
			style:pciUpStyleFunction
		},
		gd11PCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcig11&outputFormat=application/json&bbox=",
			layerName:'pcig11',
			layerType:'polygon',
			style:pciDownStyleFunction
		},
		gd11SCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:scig11&outputFormat=application/json&bbox=",
			layerName:'scig11',
			layerType:'polygon',
			style:sciUpStyleFunction
		},
		gd11SCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:scig11&outputFormat=application/json&bbox=",
			layerName:'scig11',
			layerType:'polygon',
			style:sciDownStyleFunction
		},
		gd11TCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcig11&outputFormat=application/json&bbox=",
			layerName:'tcig11',
			layerType:'polygon',
			style:tciUpStyleFunction
		},
		gd11TCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcig11&outputFormat=application/json&bbox=",
			layerName:'tcig11',
			layerType:'polygon',
			style:tciDownStyleFunction
		},
		gd13MQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqig11&outputFormat=application/json&bbox=",
			layerName:'mqig13',
			layerType:'polygon',
			style:mqiUpStyleFunction
		},
		gd13MQIUpDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqig11&outputFormat=application/json&bbox=",
			layerName:'mqig13',
			layerType:'polygon',
			style:mqiDownStyleFunction
		},
		gd13PQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqig13&outputFormat=application/json&bbox=",
			layerName:'pqig13',
			layerType:'polygon',
			style:pqiUpStyleFunction
		},
		gd13PQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqig13&outputFormat=application/json&bbox=",
			layerName:'pqig13',
			layerType:'polygon',
			style:pqiDownStyleFunction
		},
		gd13RQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqig13&outputFormat=application/json&bbox=",
			layerName:'rqig13',
			layerType:'polygon',
			style:rqiUpStyleFunction
		},
		gd13RQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqig13&outputFormat=application/json&bbox=",
			layerName:'rqig13',
			layerType:'polygon',
			style:rqiDownStyleFunction
		},
		gd13PCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcig13&outputFormat=application/json&bbox=",
			layerName:'pcig13',
			layerType:'polygon',
			style:pciUpStyleFunction
		},
		gd13PCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcig13&outputFormat=application/json&bbox=",
			layerName:'pcig13',
			layerType:'polygon',
			style:pciDownStyleFunction
		},
		gd13SCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:scig13&outputFormat=application/json&bbox=",
			layerName:'scig13',
			layerType:'polygon',
			style:sciUpStyleFunction
		},
		gd13SCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:scig13&outputFormat=application/json&bbox=",
			layerName:'scig13',
			layerType:'polygon',
			style:sciDownStyleFunction
		},
		gd13TCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcig13&outputFormat=application/json&bbox=",
			layerName:'tcig13',
			layerType:'polygon',
			style:tciUpStyleFunction
		},
		gd13TCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcig13&outputFormat=application/json&bbox=",
			layerName:'tcig13',
			layerType:'polygon',
			style:tciDownStyleFunction
		},
		gd15MQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqig15&outputFormat=application/json&bbox=",
			layerName:'mqig15',
			layerType:'polygon',
			style:mqiUpStyleFunction
		},
		gd15MQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqig15&outputFormat=application/json&bbox=",
			layerName:'mqig15',
			layerType:'polygon',
			style:mqiDownStyleFunction
		},
		gd15PQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqig15&outputFormat=application/json&bbox=",
			layerName:'pqig15',
			layerType:'polygon',
			style:pqiUpStyleFunction
		},
		gd15PQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqig15&outputFormat=application/json&bbox=",
			layerName:'pqig15',
			layerType:'polygon',
			style:pqiDownStyleFunction
		},
		gd15RQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqig15&outputFormat=application/json&bbox=",
			layerName:'rqig15',
			layerType:'polygon',
			style:rqiUpStyleFunction
		},
		gd15RQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqig15&outputFormat=application/json&bbox=",
			layerName:'rqig15',
			layerType:'polygon',
			style:rqiDownStyleFunction
		},
		gd15PCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcig15&outputFormat=application/json&bbox=",
			layerName:'pcig15',
			layerType:'polygon',
			style:pciUpStyleFunction
		},
		gd15PCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcig15&outputFormat=application/json&bbox=",
			layerName:'pcig15',
			layerType:'polygon',
			style:pciDownStyleFunction
		},
		gd15SCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:scig15&outputFormat=application/json&bbox=",
			layerName:'scig15',
			layerType:'polygon',
			style:sciUpStyleFunction

		},
		gd15SCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:scig15&outputFormat=application/json&bbox=",
			layerName:'scig15',
			layerType:'polygon',
			style:sciDownStyleFunction
		},
		gd15TCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcig15&outputFormat=application/json&bbox=",
			layerName:'tcig15',
			layerType:'polygon',
			style:tciUpStyleFunction
		},
		gd15TCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcig15&outputFormat=application/json&bbox=",
			layerName:'tcig15',
			layerType:'polygon',
			style:tciDownStyleFunction
		},
		sd11MQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqis11&outputFormat=application/json&bbox=",
			layerName:'mqis11',
			layerType:'polygon',
			style:mqiUpStyleFunction
		},
		sd11MQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqis11&outputFormat=application/json&bbox=",
			layerName:'mqis11',
			layerType:'polygon',
			style:mqiDownStyleFunction
		},
		sd11PQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqis11&outputFormat=application/json&bbox=",
			layerName:'pqis11',
			layerType:'polygon',
			style:pqiUpStyleFunction
		},
		sd11PQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqis11&outputFormat=application/json&bbox=",
			layerName:'pqis11',
			layerType:'polygon',
			style:pqiDownStyleFunction
		},
		sd11RQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqis11&outputFormat=application/json&bbox=",
			layerName:'rqis11',
			layerType:'polygon',
			style:rqiUpStyleFunction
		},
		sd11RQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqis11&outputFormat=application/json&bbox=",
			layerName:'rqis11',
			layerType:'polygon',
			style:rqiDownStyleFunction
		},
		sd11PCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcis11&outputFormat=application/json&bbox=",
			layerName:'pcis11',
			layerType:'polygon',
			style:pciUpStyleFunction
		},
		sd11PCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcis11&outputFormat=application/json&bbox=",
			layerName:'pcis11',
			layerType:'polygon',
			style:pciDownStyleFunction
		},
		sd11SCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:scis11&outputFormat=application/json&bbox=",
			layerName:'scis11',
			layerType:'polygon',
			style:sciUpStyleFunction
		},
		sd11SCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:scis11&outputFormat=application/json&bbox=",
			layerName:'scis11',
			layerType:'polygon',
			style:sciDownStyleFunction
		},
		sd11TCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcis11&outputFormat=application/json&bbox=",
			layerName:'tcis11',
			layerType:'polygon',
			style:tciUpStyleFunction
		},
		sd11TCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcis11&outputFormat=application/json&bbox=",
			layerName:'tcis11',
			layerType:'polygon',
			style:tciDownStyleFunction
		},
		sd13MQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqis13&outputFormat=application/json&bbox=",
			layerName:'mqis13',
			layerType:'polygon',
			style:mqiUpStyleFunction
		},
		sd13MQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqis13&outputFormat=application/json&bbox=",
			layerName:'mqis13',
			layerType:'polygon',
			style:mqiDownStyleFunction
		},
		sd13PQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqis13&outputFormat=application/json&bbox=",
			layerName:'pqis13',
			layerType:'polygon',
			style:pqiUpStyleFunction
		},
		sd13PQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqis13&outputFormat=application/json&bbox=",
			layerName:'pqis13',
			layerType:'polygon',
			style:pqiDownStyleFunction
		},
		sd13RQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqis13&outputFormat=application/json&bbox=",
			layerName:'rqis13',
			layerType:'polygon',
			style:rqiUpStyleFunction
		},
		sd13RQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqis13&outputFormat=application/json&bbox=",
			layerName:'rqis13',
			layerType:'polygon',
			style:rqiDownStyleFunction
		},
		sd13PCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcis13&outputFormat=application/json&bbox=",
			layerName:'pcis13',
			layerType:'polygon',
			style:pciUpStyleFunction
		},
		sd13PCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcis13&outputFormat=application/json&bbox=",
			layerName:'pcis13',
			layerType:'polygon',
			style:pciDownStyleFunction
		},
		sd13SCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:scis13&outputFormat=application/json&bbox=",
			layerName:'scis13',
			layerType:'polygon',
			style:sciUpStyleFunction
		},
		sd13SCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:scis13&outputFormat=application/json&bbox=",
			layerName:'scis13',
			layerType:'polygon',
			style:sciDownStyleFunction
		},
		sd13TCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcis13&outputFormat=application/json&bbox=",
			layerName:'tcis13',
			layerType:'polygon',
			style:tciUpStyleFunction
		},
		sd13TCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcis13&outputFormat=application/json&bbox=",
			layerName:'tcis13',
			layerType:'polygon',
			style:rqiDownStyleFunction
		},
		sd15MQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqis15&outputFormat=application/json&bbox=",
			layerName:'mqis15',
			layerType:'polygon',
			style:mqiUpStyleFunction
		},
		sd15MQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:mqis15&outputFormat=application/json&bbox=",
			layerName:'mqis15',
			layerType:'polygon',
			style:mqiDownStyleFunction
		},
		sd15PQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqis15&outputFormat=application/json&bbox=",
			layerName:'pqis15',
			layerType:'polygon',
			style:pqiUpStyleFunction
		},
		sd15PQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pqis15&outputFormat=application/json&bbox=",
			layerName:'pqis15',
			layerType:'polygon',
			style:pqiDownStyleFunction
		},
		sd15RQIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqis15&outputFormat=application/json&bbox=",
			layerName:'rqis15',
			layerType:'polygon',
			style:rqiUpStyleFunction
		},
		sd15RQIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:rqis15&outputFormat=application/json&bbox=",
			layerName:'rqis15',
			layerType:'polygon',
			style:rqiDownStyleFunction
		},
		sd15PCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcis15&outputFormat=application/json&bbox=",
			layerName:'pcis15',
			layerType:'polygon',
			style:pciUpStyleFunction
		},
		sd15PCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:pcis15&outputFormat=application/json&bbox=",
			layerName:'pcis15',
			layerType:'polygon',
			style:pciDownStyleFunction
		},
		sd15SCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:scis15&outputFormat=application/json&bbox=",
			layerName:'scis15',
			layerType:'polygon',
			style:sciUpStyleFunction
		},
		sd15SCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:scis15&outputFormat=application/json&bbox=",
			layerName:'scis15',
			layerType:'polygon',
			style:sciDownStyleFunction
		},
		sd15TCIUpLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcis15&outputFormat=application/json&bbox=",
			layerName:'tcis15',
			layerType:'polygon',
			style:tciUpStyleFunction
		},
		sd15TCIDownLayer:{
			layerUrl:gisPath+"typeName=GSJ:tcis15&outputFormat=application/json&bbox=",
			layerName:'tcis15',
			layerType:'polygon',
			style:tciDownStyleFunction
		},
};
var layerPopConfig = {
		glMsg:{//公路专题弹窗
			setGlPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName =  getLayerName(layer);
				var roadName = values["roadname"];
				if(roadName == null||roadName == ""){
					roadName = "未命名";
				};
				var index = String(values["lmlx"]).indexOf('?');
				var lmlx = '';
				if(index>0){
					lmlx = String(values["lmlx"]).substring(0,index)+"凝土";
				}
				innerHTML = '<p class="p_txt" title='+roadName+'>'+layerName+':'+roadName+'</p>'+
				'<code title='+(values["roadcode"]==null?" ":values["roadcode"])+'><span>道路编码</span>：'+(values["roadcode"]==null?" ":values["roadcode"])+'</code>'+
				'<code title='+(values["ldnum"]==null?" ":values["ldnum"])+'><span>道路序号</span>：'+(values["ldnum"]==null?" ":values["ldnum"])+'</code>'+
				'<code title='+(values["startname"]==null?" ":values["startname"])+'><span>道路起点</span>：'+(values["startname"]==null?" ":values["startname"])+'</code>'+
				'<code title='+(values["endname"]==null?" ":values["endname"])+'><span>道路终点</span>：'+(values["endname"]==null?" ":values["endname"])+'</code>'+
				'<code style="border:0;"><a title="点击查看详细信息" onclick="ViewDetails(this)" >详细信息</a></code>'+
				'<code title='+values["jsdj"]+'><span>技术等级</span>：'+values["jsdj"]+'</code>'+ 
				'<code title='+lmlx+'><span>路面类型</span>：'+lmlx+'</code>'+                      
				'<code title="'+(values["lmkd"]==null?" ":values["lmkd"])+'（米）"><span>路面宽度</span>：'+(values["lmkd"]==null?" ":values["lmkd"])+'（米）</code>'+
				'<code title="'+(values["ljkd"]==null?" ":values["ljkd"])+'（厘米）"><span>路基宽度</span>：'+(values["ljkd"]==null?" ":values["ljkd"])+'（厘米）</code>'+
				'<code title="'+(values["ldnum"]==null?" ":values["ldnum"])+'（公里）"><span>里&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;程</span>：'+(values["ldnum"]==null?" ":values["ldnum"])+'（公里）</code>'+
				'<code title='+(values["cdtz"]==null?" ":values["cdtz"])+'><span>车道特征</span>：'+(values["cdtz"]==null?" ":values["cdtz"])+'</code>'+
				'<code title='+(values["deptname"]==null?" ":values["deptname"])+'><span>管养单位</span>：'+(values["deptname"]==null?" ":values["deptname"])+'</code>'+
				'<code title='+(values["diname"]==null?" ":values["diname"])+'><span>所在地市</span>：'+(values["diname"]==null?" ":values["diname"])+'</code>'+
				'<code title='+(values["xianname"]==null?" ":values["xianname"])+'><span>所在区县</span>：'+(values["xianname"]==null?" ":values["xianname"])+'</code>'+
				'<code title='+(values["ldxz"]==null?" ":values["ldxz"])+'><span>路段现状</span>：'+(values["ldxz"]==null?" ":values["ldxz"])+'</code>'+
				'<code title='+(values["sfxz"]==null?" ":values["sfxz"])+'><span>收费现状</span>：'+(values["sfxz"]==null?" ":values["sfxz"])+'</code>'+
				'<code title='+(values["bg"]==null?" ":values["bg"])+'><span>变&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;更</span>：'+(values["bg"]==null?" ":values["bg"])+'</code>'+
				'<code title='+(values["beizhu"]==null?" ":values["beizhu"])+'><span>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</span>：'+(values["beizhu"]==null?" ":values["beizhu"])+'</code>';;
				return innerHTML;
			}
		},
		glglMsg:{//公路管理机构
			setguanlijigouPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName =  getLayerName(layer);
				var deptName = values["deptname"];
				var address = changeNullAttribute(values["address"]);
				var tbcode =  changeNullAttribute(values["tbcode"]);
				var fuzeren = changeNullAttribute(values["fuzeren"]);
				if(deptName == null || deptName == ""){
					deptName = "未命名";
				}
				innerHTML = '<p title='+deptName+'>'+layerName+':'+deptName+'</p>'+
				'<code title='+tbcode+'><span>编码</span>：'+tbcode+'</code>'+
				'<code title='+address+'><span>地址</span>：'+address+'</code>'+
				'<code title='+fuzeren+'><span>负责人</span>：'+fuzeren+'</code>';
				return innerHTML;
			}
		},
		cxjcMsg:{//超限检测
			setCxjcPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName = getLayerName(layer);
				var name = values["name"];
				if(name == null || name == ""){
					name = "未命名"; 
				}
				innerHTML = '<p title='+name+'>'+layerName+':'+name+'</p>'+
				'<code title='+(values["name"]==null?" ":values["name"])+'><span>名称</span>：'+(values["name"]==null?" ":values["name"])+'</code>'+
				'<code title='+(values["gclicheng"]==null?"无":values["gclicheng"])+'><span>检测里程</span>：'+(values["gclicheng"]==null?"无":values["gclicheng"])+'</code>';
				return innerHTML;
			}
		},
		glsfMsg:{//公路收费
			setGlsfPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName = getLayerName(layer);
				var name = values["name"];
				if(name == null || name == ""){
					name = "未命名";
				}
				innerHTML = '<p class="p_txt" title='+name+'>'+layerName+':'+name+'</p>'+
				'<code title='+values["roadcode"]+'><span>道路编号</span>：'+values["roadcode"]+'</code>'+
				'<code title='+values["roadbm"]+'><span>道路编码</span>：'+values["roadbm"]+'</code>'+
				'<code title='+values["shftype"]+'><span>收费类型</span>：'+values["shftype"]+'</code>'+
				'<code title='+values["roadzh"]+'><span>道路桩号</span>：'+values["roadzh"]+'</code>'+
				'<code style="border:0;"><a title="点击查看详细信息" onclick="ViewDetails(this)" >详细信息</a></code>'+
				'<code title='+values["jctime"]+'><span>建成时间</span>：'+values["jctime"]+'</code>'+
				'<code title='+values["deptname"]+'><span>机构名称</span>：'+values["deptname"]+'</code>'+
				'<code title='+values["shftime"]+'><span>开始时间</span>：'+values["shftime"]+'</code>'+
				'<code title='+values["endshftime"]+'><span>结束时间</span>：'+values["endshftime"]+'</code>'+
				'<code title='+values["shfyear"]+'><span>收费年限</span>：'+values["shfyear"]+'(年)</code>'+
				'<code title='+values["pizhun"]+'><span>批准</span>：'+values["pizhun"]+'</code>'+
				'<code title='+values["fangxiang"]+'><span>方向 </span>：'+values["fangxiang"]+'</code>'+
				'<code title='+values["chedao"]+'><span>车道</span>：'+values["chedao"]+'</code>'+
				'<code title='+values["fuzeren"]+'><span>负责人</span>：'+values["fuzeren"]+'</code>'+
				'<code title='+values["telephone"]+'><span>电话</span>：'+values["telephone"]+'</code>'+
				'<code title='+values["diname"]+'><span>所在地市</span>：'+values["diname"]+'</code>'+
				'<code title='+values["xianname"]+'><span>所在区县</span>：'+values["xianname"]+'</code>';
				return innerHTML;
			}
		},
		lzxkMsg:{//路政许可
			setLzxkPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName = getLayerName(layer);
				var roadcode = values["roadcode"];
				if(roadcode == null || roadcode == ""){
					roadcode = " ";
				}
				innerHTML = '<p title='+name+'>'+layerName+':'+values["name"]+'</p>'+
				'<code title='+roadcode+'><span>编号</span>：'+roadcode+'</code>'+
				'<code title='+values["name"]+'><span>名称</span>：'+values["name"]+'</code>';
				return innerHTML;
			}	 
		},
		zhuanghaoMsg:{//主要桩号
			setZhuanghaoPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName = getLayerName(layer);
				var name = values["name"];
				var beizhu = changeNullAttribute(values["beizhu"]);
				if(name == null||name == ""){
					name = "未命名";
				}
				innerHTML = '<p title='+name+'>'+layerName+':'+name+'</p>'+
				'<code title='+name+'><span>名称</span>：'+name+'</code>'+
				'<code title='+beizhu+'><span>备注</span>：'+beizhu+'</code>';
				return innerHTML;
			} 
		},
		xingzhengMsg:{//行政中心
			setXingZhengPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName = getLayerName(layer);
				var name = values['name'];
				if(name == null||name == ""){
					name = " ";
				}
				innerHTML = '<p title='+name+'>'+layerName+':'+name+'</p>'+
				'<code title='+name+'><span>行政机构</span>：'+name+'</code>';
				return  innerHTML;
			}

		},
		qiaoliangMsg:{//桥梁
			setQiaoLiangPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName = getLayerName(layer);
				var  last = values['beizhu'] || " ";
				var name = values['name'] || " ";
				innerHTML = '<p class="p_txt" title='+name+'>'+layerName+':'+name+'</p>'+
				'<code title='+values["qlcode"]+'><span>桥梁编码</span>：'+values["qlcode"]+'</code>'+
				'<code title='+values["roadcode"]+'><span>道路代码</span>：'+values["roadcode"]+'</code>'+
				'<code title='+values["shoufei"]+'><span>收费性质</span>：'+values["shoufei"]+'</code>'+
				'<code title='+values["gs"]+'><span>归属高速</span>：'+values["gs"]+'</code>'+
				'<code style="border:0;"><a title="点击查看详细信息" onclick="ViewDetails(this)" >详细信息</a></code>'+
				'<code title='+values["centerzh"]+'><span>中心桩号</span>：'+values["centerzh"]+'</code>'+
				'<code title='+values["dwclass"]+'><span>跨越地物类型</span>：'+values["dwclass"]+'</code>'+
				'<code title='+values["dwname"]+'><span>跨越地物名称</span>：'+values["dwname"]+'</code>'+
				'<code title='+values["shoufei"]+'><span>收费性质</span>：'+values["shoufei"]+'</code>'+
				'<code title='+values["ldclass"]+'><span>路段类型</span>：'+values["ldclass"]+'</code>'+
				'<code title='+values["htclass"]+'><span>互通类型</span>：'+values["htclass"]+'</code>'+
				'<code title='+values["class"]+'><span>桥梁类型</span>：'+values["class"]+'</code>'+
				'<code title='+values["xingzhi"]+'><span>桥梁性质</span>：'+values["xingzhi"]+'</code>'+
				'<code title='+values["thclass"]+'><span>通航等级</span>：'+values["thclass"]+'</code>'+
				'<code title='+values["qtclass"]+'><span>桥台类型</span>：'+values["qtclass"]+'</code>'+
				'<code title='+values["wide"]+'><span>桥面宽（米）</span>：'+values["wide"]+'</code>'+
				'<code title='+values["jkong"]+'><span>桥下净空(米)</span>：'+values["jkong"]+'</code>'+
				'<code title='+values["jwide"]+'><span>桥面净宽（米）</span>：'+values["jwide"]+'</code>'+
				'<code title='+values["sjdanwei"]+'><span>设计单位</span>：'+values["sjdanwei"]+'</code>'+
				'<code title='+values["jldanwei"]+'><span>监理单位</span>：'+values["jldanwei"]+'</code>'+
				'<code title='+values["sgdanwei"]+'><span>施工单位</span>：'+values["sgdanwei"]+'</code>'+
				'<code title='+values["jsdanwei"]+'><span>建设单位</span>：'+values["jsdanwei"]+'</code>'+
				'<code title='+values["bgyuany"]+'><span>变更原因</span>：'+values["bgyuany"]+'</code>'+
				'<code title='+last+'><span>备注</span>：'+last+'</code>';
				return innerHTML;
			} 
		},
		jiaotongMsg:{//交通调查
			setJtPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName = getLayerName(layer);
				var name = values["gczmc"];
				var month = changeNullAttribute(values["tcyf"]);
				if(name == null||name == ""){
					name = " ";
				}
				innerHTML = '<p class="p_txt" title='+name+'>'+layerName+':'+name+'</p>'+
				'<code title='+ values["cdtz"]+'><span>车道特征</span>：'+ values["cdtz"]+'</code>'+
				'<code title='+values["dcff"]+'><span>调查方法</span>：'+values["dcff"]+'</code>'+
				'<code title='+values["dcrysl"]+'><span>调查人员数量</span>：'+values["dcrysl"]+'</code>'+
				'<code title='+values["dimao"]+'><span>地貌</span>：'+values["dimao"]+'</code>'+
				'<code style="border:0;"><a title="点击查看详细信息" onclick="ViewDetails(this)" >详细信息</a></code>'+
				'<code title='+values["gclc"]+'><span>代表里程</span>：'+values["gclc"]+'</code>'+
				'<code title='+values["gczbh"]+'><span>调查站编号</span>：'+values["gczbh"]+'</code>'+
				'<code title='+values["gczmc"]+'><span>调查站名称</span>：'+values["gczmc"]+'</code>'+
				'<code title='+values["gczlx"]+'><span>调查站类型</span>：'+values["gczlx"]+'</code>'+
				'<code title='+values["gczzt"]+'><span>调查站状态</span>：'+values["gczzt"]+'</code>'+
				'<code title='+values["gdfs"]+'><span>供电方式</span>：'+values["gdfs"]+'</code>'+
				'<code title='+values["glgn"]+'><span>公路功能</span>：'+values["glgn"]+'</code>'+
				'<code title='+values["jsdj"]+'><span>技术等级</span>：'+values["jsdj"]+'</code>'+
				'<code title='+values["lmkd"]+'><span>路面宽度</span>：'+values["lmkd"]+'</code>'+
				'<code title='+values["lmlx"]+'><span>路面类型</span>：'+values["lmlx"]+'</code>'+
				'<code title='+values["txfs"]+'><span>通讯方式</span>：'+values["txfs"]+'</code>'+
				'<code title='+values["qdmc"]+'><span>起点名称</span>：'+values["qdmc"]+'</code>'+
				'<code title='+values["qdzh"]+'><span>起点桩号</span>：'+values["qdzh"]+'</code>'+
				'<code title='+values["zdmc"]+'><span>止点名称</span>：'+values["zdmc"]+'</code>'+
				'<code title='+values["zdzh"]+'><span>止点桩号</span>：'+values["qdzh"]+'</code>'+
				'<code title='+values["remark"]+'><span>所属区划</span>：'+values["remark"]+'</code>'+
				'<code title='+values["sjsd"]+'><span>设计时速</span>：'+values["sjsd"]+'</code>'+
				'<code title='+values["jzsj"]+'><span>建站时间</span>：'+values["jzsj"]+'</code>'+
				'<code title='+month+'><span>听测月份</span>：'+month+'</code>'+
				'<code title='+values["xzqhmc"]+'><span>行政区划名称</span>：'+values["xzqhmc"]+'</code>'+
				'<code title='+values["remarkmess"]+'><span>连续性</span>：'+values["remarkmess"]+'</code>';
				return innerHTML;
			} 
		},
		suidaoMsg:{//隧道
			setSuiDaoPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName = getLayerName(layer);
				var name = values["name"];
				if(name == null||name == ""){
					name = " ";
				}
				innerHTML = '<p class="p_txt" title='+name+'>'+layerName+':'+name+'</p>'+
				// '<code title='+values["sdcode"]+'><span>隧道编码</span>：'+values["sdcode"]+'</code>'+
				//'<code title='+values["xuhao"]+'><span>序号 </span>：'+values["xuhao"]+'</code>'+
				'<code title='+(values["gnclass"]==null?" ":values["gnclass"])+'><span>功能类型</span>：'+(values["gnclass"]==null?" ":values["gnclass"])+'</code>'+
				// '<code title='+values["scclass"]+'><span>地貌</span>：'+values["scclass"]+'</code>'+
				'<code title='+(values["rode"]==null?" ":values["rode"])+'><span>所属道路</span>：'+(values["rode"]==null?" ":values["rode"])+'</code>'+
				'<code title='+(values["stratzh"]==null?" ":values["stratzh"])+'><span>起点桩号</span>：'+(values["stratzh"]==null?" ":values["stratzh"])+'</code>'+
				'<code title='+(values["endzh"]==null?" ":values["endzh"])+'><span>止点桩号</span>：'+(values["endzh"]==null?" ":values["endzh"])+'</code>'+
				'<code style="border:0;"><a title="点击查看详细信息" onclick="ViewDetails(this)" >详细信息</a></code>'+
				'<code title='+(values["slength"]==null?" ":values["slength"])+'><span>隧道长度(m)</span>：'+(values["slength"]==null?" ":values["slength"])+'</code>'+
				'<code title='+(values["swidth"]==null?" ":values["swidth"])+'><span>隧道宽度(m)</span>：'+(values["swidth"]==null?" ":values["swidth"])+'</code>'+
				// '<code title='+values["area"]+'><span>调查站名称</span>：'+values["area"]+'</code>'+
				'<code title='+(values["cxd_width"]==null?" ":values["cxd_width"])+'><span>车行道宽度</span>：'+(values["cxd_width"]==null?" ":values["cxd_width"])+'</code>'+
				'<code title='+(values["cxd_materi"]==null?" ":values["cxd_materi"])+'><span>车行道材料</span>：'+(values["cxd_materi"]==null?" ":values["cxd_materi"])+'</code>'+
				'<code title='+(values["rxd_materi"]==null?" ":values["rxd_materi"])+'><span>人行道材料</span>：'+(values["rxd_materi"]==null?" ":values["rxd_materi"])+'</code>'+
				'<code title='+(values["funds"]==null?" ":values["funds"])+'><span>资金来源</span>：'+(values["funds"]==null?" ":values["funds"])+'</code>'+
				'<code title='+(values["quname"]==null?" ":values["quname"])+'><span>区域</span>：'+(values["quname"]==null?" ":values["quname"])+'</code>';
				return innerHTML;
			} 

		},
		hdmMsg:{
			setHdmPopHtml:function(layer,values){
				var innerHTML = "";
				var layerName = getLayerName(layer);
				var name = values["hdname"];
				name  = changeNullAttribute(name);
				innerHTML = '<p class="p_txt" title='+name+'>'+layerName+':'+name+'</p>'+
				'<code title='+values["hdname"]+'><span>横道名称</span>：'+values["hdname"]+'</code>'+
				'<code title='+values["name"]+'><span>所属隧道</span>：'+values["name"]+'</code>'+
				'<code title='+values["hdwidth"]+'><span>横道宽度</span>：'+values["hdwidth"]+'</code>';
				return innerHTML;
			}
		},
		protectGlMsg:{
			//公路专题弹窗
			setProtectGlPopHtml:function(values,roleType,editor){
				var innerHTML = "";
				var roadName = values["roadName"];
				if(roadName == null||roadName == ""){
					roadName = "未命名";
				};
				innerHTML = '<p class="p_txt" title='+roadName+'>'+roadName+'</p>'+
				'<code title='+values["roadCode"]+'><span>公路编号</span>：'+values["roadCode"]+'</code>'+
				'<code title='+values["startPegNum"]+'><span>桩号起点</span>：'+values["startPegNum"]+'</code>'+
				'<code title='+values["endPegNum"]+'><span>桩号终点</span>：'+values["endPegNum"]+'</code>'+
				'<code title='+values["year"]+'><span>排查时间</span>：'+values["year"]+'</code>'+
				'<code style="border:0;"><a title="点击查看项目信息" onclick=lifeProjectView("'+values["id"]+'") >查看详情</a>&nbsp;&nbsp;&nbsp;&nbsp;';
				if(roleType != 4&&values["delStatus"] !=2&&values["currentStatus"] !=5){
					if(editor=="1"){ //当用户有编辑权限的时候才显示
						innerHTML += '<a title="点击编辑项目信息" onclick=lifeProjectEditor("'+values["id"]+'") >编辑项目</a>';
					}
				}
				innerHTML += '</code>';
				return innerHTML;
			}
		},
		echarts_roadMsg:{//路况检查柱状图信息弹窗
			setEchartsRoadPopHtml:function(layer,values){
				var innerHTML = "";
				layer = layer.substring(3,7);
				var name = values['name']
				var layerName = getLayerName(layer);
				innerHTML = '<p class="p_txt" title='+name+'>'+layerName+':'+name+'</p>'+
				'<code title='+values["start"]+'><span>起点桩号</span>：'+values["start"]+'</code>'+
				'<code title='+values["end"]+'><span>止点桩号</span>：'+values["end"]+'</code>'+
				'<code title='+values["mqifz"]+'><span>MQI分值</span>：'+values["mqifz"]+'</code>'+
				'<code title='+values["pqifz"]+'><span>PQI分值</span>：'+values["pqifz"]+'</code>'+
				'<code style="border:0;"><a title="点击查看详细信息" onclick="ViewDetails(this)" >详细信息</a></code>'+
				'<code title='+values["pcifz"]+'><span>PCI分值</span>：'+values["pcifz"]+'</code>'+
				'<code title='+values["rqifz"]+'><span>RQI分值</span>：'+values["rqifz"]+'</code>'+
				'<code title='+values["scifz"]+'><span>SCI分值</span>：'+values["scifz"]+'</code>'+
				'<code title='+values["tcifz"]+'><span>TCI分值</span>：'+values["tcifz"]+'</code>';
				return innerHTML;
			}
		},
		inspect_SectionMsg:{//路检公路路段弹窗
			setInspectSectionPopHtml:function(layer,values){
				var innerHTML = "";
				var name = values['name'];
				var layerName = getLayerName(layer);
				innerHTML = '<p class="p_txt" title='+name+'>'+layerName+':'+name+'</p>'+
				'<code title='+values["start"]+'><span>起点桩号</span>：'+values["start"]+'</code>'+
				'<code title='+values["end"]+'><span>止点桩号</span>：'+values["end"]+'</code>'+
				'<code title='+(values["mqifz"]==null?"未检":values["mqifz"])+'><span>MQI分值</span>：'+(values["mqifz"]==null?"未检":values["mqifz"])+'</code>'+
				'<code title='+(values["pqifz"]==null?"未检":values["pqifz"])+'><span>PQI分值</span>：'+(values["pqifz"]==null?"未检":values["pqifz"])+'</code>'+
				'<code style="border:0;"><a title="点击查看详细信息" onclick="ViewDetails(this)" >详细信息</a></code>'+
				'<code title='+(values["pcifz"]==null?"未检":values["pcifz"])+'><span>PCI分值</span>：'+(values["pcifz"]==null?"未检":values["pcifz"])+'</code>'+
				'<code title='+(values["rqifz"]==null?"未检":values["rqifz"])+'><span>RQI分值</span>：'+(values["rqifz"]==null?"未检":values["rqifz"])+'</code>'+
				'<code title='+(values["scifz"]==null?"未检":values["scifz"])+'><span>SCI分值</span>：'+(values["scifz"]==null?"未检":values["scifz"])+'</code>'+
				'<code title='+(values["tcifz"]==null?"未检":values["tcifz"])+'><span>TCI分值</span>：'+(values["tcifz"]==null?"未检":values["tcifz"])+'</code>';
				return innerHTML; 
			}

		},
		diseaseDistribtMsg:{//病害分布弹窗
			setDiseasePopHtml:function(values){
				var innerHtml = "";
				return innerHtml;
			}
		},
		maintenanceDistritMsg:{//保养分布弹窗
			setMaintenancePopHtml:function(values){
				var innerHtml = "";
				return innerHtml;
			}
		},
		repairDistritMsg:{//小修分布弹窗
			setRepairPopHtml:function(values){
				var innerHtml = "";
				return innerHtml;
			} 
		},
		overhaulProjectMsg:{//大修工程弹窗
			setOverhaulPopHtml:function(values){
				var innerHtml = "";
				return innerHtml;
			} 

		},
		intermediateProjectMsg:{//中修工程弹窗
			setOverhaulPopHtml:function(values){
				var innerHtml = "";
				return innerHtml;
			} 
		},

};

var queryConfig = {
		queryRoad:{//查询道路定义信息
			name:'road',
			url:gsjGisWfsUrl,
			featureNS:featureNSUrl,
			featurePrefix:"GSJ",
			featureTypes:['gd','xd','gs','shend','xiangd'],
			queryFieldName:['roadname','roadcode','startname']
		},
		queryBridge:{//查询桥梁定义信息
			name:'brige',
			url:gsjGisWfsUrl,
			featureNS:featureNSUrl,
			featurePrefix:"GSJ",
			featureTypes:['ql'],
			queryFieldName:['qlcode','name']
		},
		queryTunnel:{//查询隧道定义信息
			name:'Tunnel',
			url:gsjGisWfsUrl,
			featureNS:featureNSUrl,
			featurePrefix:"GSJ",
			featureTypes:['sdx'],
			queryFieldName:['sdcode','name']
		},
		queryGSDInspect:{//查询国省道定义信息
			name:'GSDInspect',
			url:gsjGisWfsUrl,
			featureNS:featureNSUrl,
			featurePrefix:"GSJ",
			featureTypes:['gd11','gd13','gd15','sd11','sd13','sd15'],
			queryFieldName:['code','name','sxx','start','end']
		},
		queryXYDInspect:{//查询县乡道定义信息
			name:'XYDInspect',
			url:gsjGisWfsUrl,
			featureNS:featureNSUrl,
			featurePrefix:"GSJ",
			featureTypes:['xd11','xd15','yd11','yd15'],
			queryFieldName:['name','code','start','end']
		}
};
var changeNullAttribute = function(attribute){//字段值为空处理
	var attribution = '无信息';
	if(attribute == null || attribute == ''){
		return attribution;
	}
	return attribute;
};
function mqiUpStyleFunction (feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var mqipd = feature.get('mqipd');
	if(sxx == '上行'){
		if(mqipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400'
				}),

			}); 
		}else if(mqipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5'
				}),


			}); 
		}else  if(mqipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02'
				}),

			}); 
		}else if(mqipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201'
				}),


			}); 
		}else if(mqipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c'
				}),

			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];
};
function mqiDownStyleFunction (feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var mqipd = feature.get('mqipd');
	if(sxx == '下行'){
		if(mqipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400'
				}),

			}); 
		}else if(mqipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5'
				}),
			}); 
		}else  if(mqipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02'
				}), 

			}); 
		}else if(mqipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201'
				}), 

			}); 
		}else if(mqipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c'
				}), 

			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];
};
function pqiUpStyleFunction(feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var pqipd = feature.get('pqipd');
	if(sxx == '上行'){
		if(pqipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400'
				}),

			}); 
		}else if(pqipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5'
				}),

			}); 
		}else  if(pqipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02'
				}),

			}); 
		}else if(pqipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201'
				}),
			}); 
		}else if(pqipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c'
				}),
			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];
};
function pqiDownStyleFunction (feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var pqipd = feature.get('pqipd');
	if(sxx == '下行'){
		if(pqipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400'
				}),

			}); 
		}else if(pqipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5'
				}),


			}); 
		}else  if(pqipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02'
				}),

			}); 
		}else if(pqipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201'
				}),

			}); 
		}else if(pqipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c'
				}),

			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];
};
function pciUpStyleFunction(feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var pcipd = feature.get('pcipd');
	if(sxx == '上行'){
		if(pcipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400'
				}),

			}); 
		}else if(pcipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5'
				}),

			}); 
		}else  if(pcipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02'
				}),


			}); 
		}else if(pcipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201'
				}),

			}); 
		}else if(pcipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c'
				}),

			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];
};
function  pciDownStyleFunction(feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var pcipd = feature.get('pcipd');
	if(sxx == '下行'){
		if(pcipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400'
				}),

			}); 
		}else if(pcipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5'
				}),

			}); 
		}else  if(pcipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02'
				}),


			}); 
		}else if(pcipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201'
				}),

			}); 
		}else if(pcipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c'
				}),

			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];	
};
function  rqiUpStyleFunction(feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var rqipd = feature.get('rqipd');
	if(sxx == '上行'){
		if(rqipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400'
				}),
			}); 
		}else if(rqipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5'
				}),
			}); 
		}else  if(rqipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02'
				}),
			}); 
		}else if(rqipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#ff9201',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201'
				}),

			}); 
		}else if(rqipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c'
				}),

			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];
};
function  rqiDownStyleFunction(feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var rqipd = feature.get('rqipd');
	if(sxx == '下行'){
		if(rqipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400'
				}),
			}); 
		}else if(rqipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5'
				}),

			}); 
		}else  if(rqipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02'
				}),

			}); 
		}else if(rqipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201'
				}),


			}); 
		}else if(rqipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c'
				}),

			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];
};
function  sciUpStyleFunction (feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var scipd = feature.get('scipd');
	if(sxx == '上行'){
		if(scipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400'
				}),

			}); 
		}else if(scipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5'
				}),

			}); 
		}else  if(scipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02'
				}),

			}); 
		}else if(scipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201'
				}),

			}); 
		}else if(scipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c'
				}),

			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];
};
function  sciDownStyleFunction (feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var scipd = feature.get('scipd');
	if(sxx == '下行'){
		if(scipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400'
				}),

			}); 
		}else if(scipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5'
				}),

			}); 
		}else  if(scipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02'
				}),

			}); 
		}else if(scipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201'
				}),

			}); 
		}else if(scipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c'
				}),

			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];

};
function tciUpStyleFunction (feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var tcipd = feature.get('tcipd');
	if(sxx == '上行'){
		if(tcipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400',
				}),

			}); 
		}else if(tcipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5',
				}),

			}); 
		}else  if(tcipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02',
				}),

			}); 
		}else if(tcipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201',
				}),

			}); 
		}else if(tcipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c',
				}),

			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];

};
function  tciDownStyleFunction (feature, resolution){
	var style = null;
	var sxx =  feature.get('sxx');
	var tcipd = feature.get('tcipd');
	if(sxx == '上行'){
		if(tcipd == '优'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#008400',
				}),

			}); 
		}else if(tcipd == '良'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#0200f5',
				}),


			}); 
		}else  if(tcipd == '中'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ffff02',
				}),


			}); 
		}else if(tcipd == '次'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#ff9201',
				}),

			}); 
		}else if(tcipd == '差'){
			style=new ol.style.Style({
				stroke: new ol.style.Stroke({   
					color: '#4c4c4c',
					width:1
				}),
				fill: new ol.style.Fill({ //矢量图层填充颜色，以及透明度
					color: '#f8010c',
				}),
			}); 
		}
	}else{
		style=new ol.style.Style({

		}); 
	}
	return [style];
};
var lifeProjectView = function(id){
	top.$.jBox("iframe:"+appConfig.contPath+"/lifeProject/gisView.do?id="+id, 
			{
		title: "安防工程详情",
		width: 1300,
		height: 500,
		showClose:true,
		persistent:true,
		closed:function(v, h, f){
			//关闭之后无处理事件
		}, 
		loaded:function(h){
			$(".jbox-content", top.document).css("overflow-y","hidden");
//			$('.jbox-button-panel').each(function(){
//			$(this).attr('style','display:none');
//			});
			$('#jbox-content').width(1300);
			$('.jbox-title-panel').height(40);
		}
			});
}
var lifeProjectEditor = function(id){
	top.$.jBox("iframe:"+appConfig.contPath+"/lifeProject/gisEditor.do?id="+id, 
			{
		title: "安防工程处理",
		width: 1300,
		height: 500,
		showClose:true,
		persistent:true,
		closed:function(v, h, f){
			//处理完之后  需要重新加载地图信息

		}, 
		loaded:function(h){
			$(".jbox-content", top.document).css("overflow-y","hidden");
			$('#jbox-content').width(1300);
			$('.jbox-title-panel').height(40);
		}
			});
}
